function T = dynamic_resid_tt(T, y, x, params, steady_state, it_)
% function T = dynamic_resid_tt(T, y, x, params, steady_state, it_)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T             [#temp variables by 1]     double  vector of temporary terms to be filled by function
%   y             [#dynamic variables by 1]  double  vector of endogenous variables in the order stored
%                                                    in M_.lead_lag_incidence; see the Manual
%   x             [nperiods by M_.exo_nbr]   double  matrix of exogenous variables (in declaration order)
%                                                    for all simulation periods
%   steady_state  [M_.endo_nbr by 1]         double  vector of steady state values
%   params        [M_.param_nbr by 1]        double  vector of parameter values in declaration order
%   it_           scalar                     double  time period for exogenous variables for which
%                                                    to evaluate the model
%
% Output:
%   T           [#temp variables by 1]       double  vector of temporary terms
%

assert(length(T) >= 204);

T(1) = params(5)*(1+y(50))^(-1)*exp(y(110));
T(2) = exp(y(110))*params(5)*(1+y(77))^(-1);
T(3) = exp(y(110))*params(5)*(1+y(104))^(-1);
T(4) = 1-params(3);
T(5) = exp(y(38))^T(4);
T(6) = params(17)^(params(3)-1);
T(7) = exp(y(4));
T(8) = T(6)*T(7);
T(9) = T(8)*(params(1)*exp(y(43))*params(39)*(1+params(38)*(1-x(it_, 1))))^T(4);
T(10) = params(27)^(params(3)-1);
T(11) = exp(y(9));
T(12) = T(10)*T(11);
T(13) = T(12)*(params(1)*exp(y(70))*params(43)*(1+params(42)*(1-x(it_, 4))))^T(4);
T(14) = params(37)^(params(3)-1);
T(15) = exp(y(12));
T(16) = T(14)*T(15);
T(17) = exp(y(65))^T(4);
T(18) = T(8)*(params(1)*exp(y(43))*params(51)*(1+params(50)*(1-x(it_, 10))))^T(4);
T(19) = T(12)*(params(1)*exp(y(70))*params(55)*(1+params(54)*(1-x(it_, 13))))^T(4);
T(20) = exp(y(92))^T(4);
T(21) = T(8)*(params(1)*exp(y(43))*params(63)*(1+params(62)*(1-x(it_, 19))))^T(4);
T(22) = T(12)*(params(1)*exp(y(70))*params(67)*(1+params(66)*(1-x(it_, 22))))^T(4);
T(23) = exp(y(39))^T(4);
T(24) = T(6)*exp(y(5));
T(25) = T(24)*(params(1)*exp(y(43))*params(40)*(1-x(it_, 2)))^T(4);
T(26) = T(10)*exp(y(10));
T(27) = T(26)*(params(1)*exp(y(70))*params(44)*(1-x(it_, 5)))^T(4);
T(28) = exp(y(66))^T(4);
T(29) = T(24)*(params(1)*exp(y(43))*params(52)*(1-x(it_, 11)))^T(4);
T(30) = T(26)*(params(1)*exp(y(70))*params(56)*(1-x(it_, 14)))^T(4);
T(31) = exp(y(93))^T(4);
T(32) = T(24)*(params(1)*exp(y(43))*params(64)*(1-x(it_, 20)))^T(4);
T(33) = T(26)*(params(1)*exp(y(70))*params(68)*(1-x(it_, 23)))^T(4);
T(34) = exp(y(37));
T(35) = (exp(y(38))/params(14))^params(14);
T(36) = exp(y(39))/(1-params(14));
T(37) = T(36)^(1-params(14));
T(38) = exp(y(64));
T(39) = (exp(y(65))/params(24))^params(24);
T(40) = exp(y(66))/(1-params(24));
T(41) = T(40)^(1-params(24));
T(42) = exp(y(91));
T(43) = (exp(y(92))/params(34))^params(34);
T(44) = exp(y(93))/(1-params(34));
T(45) = T(44)^(1-params(34));
T(46) = T(8)*(params(39)*(1+params(38)*(1-x(it_, 1))))^T(4);
T(47) = (params(1)*exp(y(43)))^T(4);
T(48) = T(46)*T(47);
T(49) = T(24)*(params(40)*(1-x(it_, 2)))^T(4);
T(50) = T(47)*T(49);
T(51) = T(12)*(params(43)*(1+params(42)*(1-x(it_, 4))))^T(4);
T(52) = (params(1)*exp(y(70)))^T(4);
T(53) = T(51)*T(52);
T(54) = T(26)*(params(44)*(1-x(it_, 5)))^T(4);
T(55) = T(52)*T(54);
T(56) = T(8)*(params(51)*(1+params(50)*(1-x(it_, 10))))^T(4);
T(57) = T(24)*(params(52)*(1-x(it_, 11)))^T(4);
T(58) = T(12)*(params(55)*(1+params(54)*(1-x(it_, 13))))^T(4);
T(59) = T(52)*T(58);
T(60) = T(26)*(params(56)*(1-x(it_, 14)))^T(4);
T(61) = T(52)*T(60);
T(62) = T(8)*(params(63)*(1+params(62)*(1-x(it_, 19))))^T(4);
T(63) = T(24)*(params(64)*(1-x(it_, 20)))^T(4);
T(64) = T(12)*(params(67)*(1+params(66)*(1-x(it_, 22))))^T(4);
T(65) = T(26)*(params(68)*(1-x(it_, 23)))^T(4);
T(66) = T(34)*exp(y(114))*exp(y(28))/(1+params(38)*(1-x(it_, 1)));
T(67) = T(38)*exp(y(138))*exp(y(55))/(1+params(50)*(1-x(it_, 10)));
T(68) = T(42)*exp(y(162))*exp(y(82))/(1+params(62)*(1-x(it_, 19)));
T(69) = T(34)*exp(y(122))*exp(y(28))/(1+params(42)*(1-x(it_, 4)));
T(70) = T(38)*exp(y(146))*exp(y(55))/(1+params(54)*(1-x(it_, 13)));
T(71) = T(42)*exp(y(170))*exp(y(82))/(1+params(66)*(1-x(it_, 22)));
T(72) = T(34)*exp(y(130))*exp(y(28))/(1+params(46)*(1-x(it_, 7)));
T(73) = T(38)*exp(y(154))*exp(y(55))/(1+params(58)*(1-x(it_, 16)));
T(74) = T(42)*exp(y(178))*exp(y(82))/(1+params(70)*(1-x(it_, 25)));
T(75) = exp(y(109));
T(76) = 1/(params(3)-1);
T(77) = exp(y(43))*T(76);
T(78) = exp(y(70))*T(76);
T(79) = 1/exp(y(110));
T(80) = (1+y(85))^T(76);
T(81) = T(80)/(1+y(31));
T(82) = T(34)/exp(y(230));
T(83) = T(80)/(1+y(58));
T(84) = T(38)/exp(y(234));
T(85) = T(80)/(1+y(85));
T(86) = T(42)/exp(y(238));
T(87) = exp(y(184))*T(34)/T(75);
T(88) = exp(y(189))*T(34)/T(75);
T(89) = exp(y(194))*T(34)/T(75);
T(90) = exp(y(199))*T(38)/T(75);
T(91) = exp(y(204))*T(38)/T(75);
T(92) = exp(y(209))*T(38)/T(75);
T(93) = exp(y(214))*T(42)/T(75);
T(94) = exp(y(219))*T(42)/T(75);
T(95) = exp(y(224))*T(42)/T(75);
T(96) = T(7)*exp(y(201))/T(11);
T(97) = T(7)*exp(y(216))/T(15);
T(98) = T(11)*exp(y(191))/T(7);
T(99) = T(11)*exp(y(221))/T(15);
T(100) = T(15)*exp(y(196))/T(7)+T(15)*exp(y(211))/T(11);
T(101) = T(34)^(-1);
T(102) = T(75)^(-params(2));
T(103) = 1/(1-params(2));
T(104) = (exp(y(44))*params(2)*params(11)*T(102))^T(103);
T(105) = T(38)^(-1);
T(106) = (T(102)*exp(y(71))*params(2)*params(21))^T(103);
T(107) = T(42)^(-1);
T(108) = (T(102)*exp(y(98))*params(2)*params(31))^T(103);
T(109) = exp(y(34))*T(34)/T(75);
T(110) = params(11)*T(109)^params(2);
T(111) = T(7)/exp(y(3));
T(112) = exp(y(61))*T(38)/T(75);
T(113) = params(21)*T(112)^params(2);
T(114) = T(11)/exp(y(8));
T(115) = exp(y(88))*T(42)/T(75);
T(116) = params(31)*T(115)^params(2);
T(117) = T(15)/exp(y(11));
T(118) = exp(y(187))*(exp(y(3))*(1+y(35))/exp(y(15))-1);
T(119) = exp(y(192))*(exp(y(8))*(1+y(62))/exp(y(16))-1);
T(120) = exp(y(197))*(exp(y(11))*(1+y(89))/exp(y(17))-1);
T(121) = exp(y(202))*(exp(y(3))*(1+y(35))/exp(y(18))-1);
T(122) = exp(y(207))*(exp(y(8))*(1+y(62))/exp(y(19))-1);
T(123) = exp(y(212))*(exp(y(11))*(1+y(89))/exp(y(20))-1);
T(124) = exp(y(217))*(exp(y(3))*(1+y(35))/exp(y(21))-1);
T(125) = exp(y(222))*(exp(y(8))*(1+y(62))/exp(y(22))-1);
T(126) = exp(y(227))*(exp(y(11))*(1+y(89))/exp(y(23))-1);
T(127) = exp(y(184))*(-T(34))*exp(y(46))/exp(y(15));
T(128) = exp(y(187))/y(112);
T(129) = T(127)*T(128);
T(130) = T(129)+T(82)*T(81)*T(79)*(exp(y(240))*exp(y(187))+(1-exp(y(187)))*exp(y(267)));
T(131) = exp(y(189))*(-T(34))*exp(y(46))/exp(y(16));
T(132) = exp(y(192))/y(120);
T(133) = T(131)*T(132);
T(134) = T(133)+T(82)*T(81)*T(79)*(exp(y(243))*exp(y(192))+(1-exp(y(192)))*exp(y(269)));
T(135) = exp(y(194))*(-T(34))*exp(y(46))/exp(y(17));
T(136) = exp(y(197))/y(128);
T(137) = T(135)*T(136);
T(138) = T(137)+T(82)*T(81)*T(79)*(exp(y(246))*exp(y(197))+(1-exp(y(197)))*exp(y(271)));
T(139) = exp(y(199))*(-T(38))*exp(y(73))/exp(y(18));
T(140) = exp(y(202))/y(136);
T(141) = T(139)*T(140);
T(142) = T(141)+T(84)*T(83)*T(79)*(exp(y(249))*exp(y(202))+(1-exp(y(202)))*exp(y(273)));
T(143) = exp(y(204))*(-T(38))*exp(y(73))/exp(y(19));
T(144) = exp(y(207))/y(144);
T(145) = T(143)*T(144);
T(146) = T(145)+T(84)*T(83)*T(79)*(exp(y(252))*exp(y(207))+(1-exp(y(207)))*exp(y(275)));
T(147) = exp(y(209))*(-T(38))*exp(y(73))/exp(y(20));
T(148) = exp(y(212))/y(152);
T(149) = T(147)*T(148);
T(150) = T(149)+T(84)*T(83)*T(79)*(exp(y(255))*exp(y(212))+(1-exp(y(212)))*exp(y(277)));
T(151) = exp(y(214))*(-T(42))*exp(y(100))/exp(y(21));
T(152) = exp(y(217))/y(160);
T(153) = T(151)*T(152);
T(154) = T(153)+T(86)*T(85)*T(79)*(exp(y(258))*exp(y(217))+(1-exp(y(217)))*exp(y(279)));
T(155) = exp(y(219))*(-T(42))*exp(y(100))/exp(y(22));
T(156) = exp(y(222))/y(168);
T(157) = T(155)*T(156);
T(158) = T(157)+T(86)*T(85)*T(79)*(exp(y(261))*exp(y(222))+(1-exp(y(222)))*exp(y(281)));
T(159) = exp(y(224))*(-T(42))*exp(y(100))/exp(y(23));
T(160) = exp(y(227))/y(176);
T(161) = T(159)*T(160);
T(162) = T(161)+T(86)*T(85)*T(79)*(exp(y(264))*exp(y(227))+(1-exp(y(227)))*exp(y(283)));
T(163) = exp(y(184))*T(34)*T(7)/exp(y(15));
T(164) = T(128)*T(163);
T(165) = exp(y(189))*T(34)*T(7)/exp(y(16));
T(166) = T(132)*T(165);
T(167) = exp(y(194))*T(34)*T(7)/exp(y(17));
T(168) = T(136)*T(167);
T(169) = exp(y(199))*T(38)*T(11)/exp(y(18));
T(170) = T(140)*T(169);
T(171) = exp(y(204))*T(38)*T(11)/exp(y(19));
T(172) = T(144)*T(171);
T(173) = exp(y(209))*T(38)*T(11)/exp(y(20));
T(174) = T(148)*T(173);
T(175) = exp(y(214))*T(42)*T(15)/exp(y(21));
T(176) = T(152)*T(175);
T(177) = exp(y(219))*T(42)*T(15)/exp(y(22));
T(178) = T(156)*T(177);
T(179) = exp(y(224))*T(42)*T(15)/exp(y(23));
T(180) = T(160)*T(179);
T(181) = exp(y(41))*exp(y(111))*exp(y(15))/T(7);
T(182) = exp(y(68))*exp(y(135))*exp(y(18))/T(11);
T(183) = exp(y(95))*exp(y(159))*exp(y(21))/T(15);
T(184) = exp(y(95))*exp(y(167))*exp(y(22))/T(15);
T(185) = exp(y(95))*exp(y(175))*exp(y(23))/T(15);
T(186) = exp(y(55))*T(38)*exp(y(138))/(1+params(50)*(1-x(it_, 10)));
T(187) = exp(y(142))+T(186);
T(188) = exp(y(28))*T(34)*exp(y(122))/(1+params(42)*(1-x(it_, 4)));
T(189) = exp(y(126))+T(188);
T(190) = exp(y(28))*T(34)*exp(y(130))/(1+params(46)*(1-x(it_, 7)));
T(191) = exp(y(55))*T(38)*exp(y(154))/(1+params(58)*(1-x(it_, 16)));
T(192) = T(16)*((1+params(46)*(1-x(it_, 7)))*params(1)*params(47))^T(4);
T(193) = T(16)*((1+params(58)*(1-x(it_, 16)))*params(1)*params(59))^T(4);
T(194) = T(16)*((1+params(70)*(1-x(it_, 25)))*params(1)*params(71))^T(4);
T(195) = T(14)*exp(y(13))*((1-x(it_, 8))*params(1)*params(48))^T(4);
T(196) = T(14)*exp(y(13))*((1-x(it_, 17))*params(1)*params(60))^T(4);
T(197) = T(14)*exp(y(13))*((1-x(it_, 26))*params(1)*params(72))^T(4);
T(198) = params(1)^T(4);
T(199) = T(16)*(params(47)*(1+params(46)*(1-x(it_, 7))))^T(4)*T(198);
T(200) = T(14)*exp(y(13))*(params(48)*(1-x(it_, 8)))^T(4)*T(198);
T(201) = T(16)*(params(59)*(1+params(58)*(1-x(it_, 16))))^T(4)*T(198);
T(202) = T(14)*exp(y(13))*(params(60)*(1-x(it_, 17)))^T(4)*T(198);
T(203) = T(16)*(params(71)*(1+params(70)*(1-x(it_, 25))))^T(4)*T(198);
T(204) = T(14)*exp(y(13))*(params(72)*(1-x(it_, 26)))^T(4)*T(198);

end
